package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Sign;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SignMapper {
    int insert(Sign record);

    List<Sign> selectAll();

    List<Sign> selectForList(QueryObject qo);

    //判断当天是否签到
    Sign selectByStateAndTime(@Param("id") Long id);

    //判断昨天是否签到
    Sign selectLastDay(@Param("id") Long id);

    //修改签到记录
    int updateByPrimaryKey(Sign sign);

    Sign selectListById(Long id);
}